.scrolling-tabs-container{ class: nav_control_class }
  = render 'layouts/nav/admin_settings'
  .fade-left
    = icon('angle-left')
  .fade-right
    = icon('angle-right')
  %ul.nav-links.scrolling-tabs
    = nav_link(controller: %w(dashboard admin projects users groups builds runners), html_options: {class: 'home'}) do
      = link_to admin_root_path, title: '概览', class: 'shortcuts-tree' do
        %span
          概览
    = nav_link(controller: %w(system_info background_jobs logs health_check)) do
      = link_to admin_system_info_path, title: '监控' do
        %span
          监控
    = nav_link(controller: :broadcast_messages) do
      = link_to admin_broadcast_messages_path, title: '消息' do
        %span
          消息
    = nav_link(controller: :hooks) do
      = link_to admin_hooks_path, title: '钩子' do
        %span
          钩子

    = nav_link(controller: :applications) do
      = link_to admin_applications_path, title: '应用' do
        %span
          应用

    = nav_link(controller: :abuse_reports) do
      = link_to admin_abuse_reports_path, title: "滥用举报" do
        %span
          滥用举报
          %span.badge.count= number_with_delimiter(AbuseReport.count(:all))

    - if askimet_enabled?
      = nav_link(controller: :spam_logs) do
        = link_to admin_spam_logs_path, title: "垃圾邮件日志" do
          %span
            垃圾邮件日志
